<?php

class Ads_Model_Contactowner {

    private $_dbtable;

    public function __construct() {
        $this->_dbtable = new Ads_Model_DbTable_Contactowner();
    }

    public function fetchAll() {
        $select = $this->_dbtable->select();
        return $this->_dbtable->fetchAll($select);
    }

    public function getByOwnerId($ownerId) {
        $select = $this->_dbtable->select();
        $select->where("owner_id = ?", $ownerId);
        return $this->_dbtable->fetchAll($select);
    }    
    
    public function save($data) {
        $this->_dbtable->insert($data);
    }
    

}

